package com.edu.whty.service.impl;

import com.edu.whty.common.tools.redis.RedisUtil;
import com.edu.whty.dao.TbCatalogUserMapper;
import com.edu.whty.entity.cloud.CatalogInfo;
import com.edu.whty.service.WxCloudService;
import net.sf.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WxCloudServiceImpl implements WxCloudService {

    private Logger logger = LoggerFactory.getLogger(getClass());

    @Autowired
    TbCatalogUserMapper tbCatalogUserMapper;


    @Override
    public void saveCatalogUser(CatalogInfo catalogInfo) throws Exception {
        tbCatalogUserMapper.save(catalogInfo);
    }

    @Override
    public void updateCatalogUser(CatalogInfo catalogInfo) throws Exception {
        tbCatalogUserMapper.update(catalogInfo);
    }

    @Override
    public CatalogInfo getCatalogByUser(CatalogInfo catalogInfo) throws Exception {
        return tbCatalogUserMapper.getCatalogByUser(catalogInfo);
    }

}
